//
//  JLXXViewController.m
//  JLXXBase
//
//  Created by cnsuer on 05/11/2017.
//  Copyright (c) 2017 cnsuer. All rights reserved.
//

#import "JLXXViewController.h"
#import <JLXXBase/BaseTabBarController.h>
@interface JLXXViewController ()

@end

@implementation JLXXViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    
    [self addNodataViewInView:self.view];

}
- (IBAction)pushTo:(id)sender {
    
    //[self.navigationController pushViewController:[UIViewController new] animated:YES];

    //[self presentNeedNavgation:YES hadLeftBackButton:YES presentendViewController:[UIViewController new]];
    
    BaseTabBarController *tab = [[BaseTabBarController alloc] init];
    [tab addChildControllerWithControllerName:@"JLXXTestController" normaImage:@"底部首页未选中" selectedImage:@"底部首页选中" navTitle:@"首页" tabBarTitle:@"首页" isRequireNavgation:YES];
    [tab addChildControllerWithControllerName:@"JLXXTestController2" normaImage:@"底部我的未选中" selectedImage:@"底部我的选中" navTitle:@"我的" tabBarTitle:@"我的" isRequireNavgation:YES];
    
    tab.clickCenter = ^(){
        NSLog(@"clcik center");
    };
    
    [self presentNeedNavgation:NO hadLeftBackButton:NO presentendViewController:tab];
}

@end
